package com.winhxd.b2c.common.domain.product.vo;

import com.winhxd.b2c.common.domain.product.model.ProductCategory;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@ApiModel("商品分类")
@Data
public class ProductCategoryVO {

    private Long id;

    @ApiModelProperty("分类名称")
    private String name;

    @ApiModelProperty("父分类id")
    private Long parentId;

    @ApiModelProperty("分类级别")
    private Byte level;

    @ApiModelProperty("分类描述")
    private String description;

    @ApiModelProperty("是否是叶子节点，1：是；0：否")
    private Byte leaf;

    @ApiModelProperty("排序号")
    private Integer sort;

    @ApiModelProperty("分类图片地址")
    private String imageUrl;

    @ApiModelProperty("状态(0无效,1有效)")
    private Byte status;

    @ApiModelProperty("创建人")
    private String createdBy;

    @ApiModelProperty("创建时间")
    private Date createdTime;

    @ApiModelProperty("修改人")
    private String modifiedBy;

    @ApiModelProperty("修改时间")
    private Date modifiedTime;

    private List<ProductCategory> secondCategoryList;
}
